package com.nix.model.page.area;

import com.nix.model.page.element.NXElement;
import com.nix.model.page.style.NXStyle;


/**
 * 最终页面里面展示用的是 此 NXAreaElement
 * @author fangliang
 *
 */
public class NXAreaElement {
	
	private final NXElement nXElement;	
	public final int XStart;
	public final int XEnd;
	public final int YStart;
	public final int YEnd;
	public final int Length;
	
	public final NXStyle nxStyle;
	
	
	
	public final int ParagraphIndex;
	public final int ElementIndex;
	public final int CharIndex;
	
	
	/**
	 * 
	 * @param paragraphIndex 段落索引
	 * @param elementIndex	 元素索引
	 * @param charIndex      字符索引
	 * @param length         长度
	 * @param style          样式
	 * @param element        元素
	 * @param xStart         X启始
	 * @param xEnd           X结束
	 * @param yStart         Y启始
	 * @param yEnd           Y结束
	 * 
	 */
	public NXAreaElement(int paragraphIndex, int elementIndex, int charIndex, int length, 
			 NXStyle style, NXElement element, int xStart, int xEnd, int yStart, int yEnd){
		this.XStart = xStart;
		this.YStart = yStart;
		this.XEnd = xEnd;
		this.YEnd = yEnd;
		this.Length = length;
		this.nXElement = element;
		this.nxStyle = style;
		this.ParagraphIndex = paragraphIndex;
		this.ElementIndex = elementIndex;
		this.CharIndex = charIndex;
	}
	
}
